
 AddIntroGen - program adds in Rom Sega Mega Drive your own intro.

 In one Rom possible to insert several intros! For each intro can edit palette. Each image can be 16 (1 transparent + 15) colors. Button Start - switching intro (or they will switch independently after a few seconds).

How it works:

MAIN MENU:

1. "Open Rom": format *.gen or *.bin
2. "Insert Intro": insert the default logo screen. Afterwards you can change logo (use any graphics editor for graphics Sega Mega Drive and Image 256 colors.bin).
3. "Intro pointer": This field shows the pointer to our intro.
4. "Insert intro pointer": inserts a new pointer to the Rom.
5. Performing with 1st through 4th paragraphs, we insert in Rom default intro. At this stage You can check the Rom (running Rom in the emulator). Once you have verified that the rom works, you can insert your logo. This can be done editing the file Default_logo.bin in any editor for graphics Sega Mega Drive, and insert it then in Rom. Use the button "Own picture."

 You can also make a file with your own picture yourself from a regular bmp image, which can be converted to bin format for subsequent insertion into ROM. This will be written below.

PALETTE:

1. Button "Reload" and "Save", respectively, to load and save Rom palette. Double-click on the cell with color opens choice of the colour. If you hold the cursormouse over a cell with the color, a hint will be displayed color (format RGB).
2. The "Palette address": palette address in Rom.
3. Use the "Import palette from file" and "Export palette to file" can be imported and export the palette in the native format of the program *.AIGpal.

 Warning! After import (and before export) it's necessary to press the button "Save Palette"!!!

 4. The colors of the palette that are displayed on the screensaver itself are 15. The first of them can not be edited. It will be transparent anyway. But since it is still used in a 16-color image, this color must be replaced with any of the other 15 colors in the palette (preferably free). After opening the bmp image in the program, the free (unused) colors of the palette will be highlighted in green. For example, open the file "Open 320x224 bmp" from the files folder "Image 24 bit.bmp". Four of the 16 colors are not used in it - 11, 12, 13 and 14. If all colors are used in the picture, then the first (white) color should be replaced with any of the remaining ones. Then these 2 colors will be the same (otherwise white color will repeat black). But this will be written below.

CREATING A BIN FILE FROM A BMP IMAGE:

 The program can only work with bmp files. Moreover, they must be strictly 320x224 pixels in size. Files of different bit sizes for example can be found in the files folder.


 1. Open your bmp file "Open 320x224 bmp". After that, the image file will be sequentially processed to a 16-color bmp file (4bit). If the result does not satisfy you, you can additionally select other transformations of the original image (Greyscale, 32bit, 24bit, 16bit, 15bit, 8bit). The conversions will go sequentially from the formats with the largest number of colors to the smaller ones. After selecting the necessary daws, click on the "Reload bmp" button. You can also upload other types of images with different numbers of colors. Sometimes it can bring the best result.
 2. After all the manipulations, you can save a 16-color picture with the "Save bmp" button.
 3. After converting the picture, you will see how many colors are used in it. A green field with its number will appear above the unused palette colors. Now let's discuss a very important point!

 We got a 16-color image. And in this image, the first color in the palette is white. But only 15 colors will be available in the rom, and the first of them will be transparent (by default it will repeat the last color of the palette, i.e. black).

 Therefore, if you have a white color in the image, then it will go first in the palette, and when inserted into the rom it will coincide with the black color. And this point should be corrected. To do this, you need to do the following:

 a. Use the "<" and ">" buttons to select which color the transparent color of the palette (white) will be identical to. You need to select a color number that is not used in the image (marked in green). For example, open the file "Open 320x224 bmp" from the files folder "Image 24 bit.bmp". Four of the 16 colors are not used in it - 11, 12, 13 and 14. Let's remember the number of the free color in the palette (for example, 11).
 b. After selecting this color (The transparent color = 11 palette color), you need to click the "Reload bmp" button, and the white color in the picture will be replaced by the selected one you have a free (or any of the used) color.
 c. Now you can convert bmp to bin by clicking the "Convert bmp to bin" button.

 After the end of the process, this file can be inserted into the ROM by clicking the "Own picture" button. And now you need to change the color you have memorized in the palette to white (double-click on the 11th color, select white and save the palette in the "Save palette" to rom). Now you can change all 15 colors in the picture as you want. Do not forget to save the palette (and import it into the palette file after saving, so that you can return to the original data at any time) and look at the finished result more often when starting the rom.

 * The "invert colors" option inverts the colors not in the bmp file, but in the bin file when the image is converted.

INTRO PARAMETERS:

 After inserting an intro into the rom and changing its palette, you can change the following parameters:

 * The speed of the image appearance (from very slow to almost instantaneous). 
 * Auto-rewind of the image (with the selected checkbox, you will not need to press Start to skip it).

 If you insert several images, you can edit the parameters of each of them. Insert the first picture, save its palette and parameters. Then open the rom again and insert the next one, edit and save its parameters and so on as much as you want. The pictures you have inserted will appear in the reverse order of their insertion.

INFORMATION:

 For create your image is better to use specialized software. For instance, ImaGenesis.exe can edit the image so that it was right amount of color palettes - 15 color, 4bpp, 1 plane, 8x8 tiles.
 After this is only import the file *.bmp using a graphical editor for games sega in rom and change palette. Other programs - Genitile, B2T, GenRes, Mega-Happy-Sprite and other...

The program is able to insert the intro in Rom approximately 80-90% of all existing Roms.

 Sorry for my BAD english (automatic translator)...

 versions:

 ver 1.02 17.03.2023

 * Fixed errors when selecting colors, loading and saving the palette.
 * Added the ability to convert bmp image files to bin and then upload them to rom.
 * The conversion can occur sequentially according to the algorithms you have chosen.
 * It is now possible to save the resulting bmp file as a result of your transformations into a 16-color image.
 * Added the ability to replace the first transparent color of the palette (by default, it is white in a 16-color image) with any other of the 15 colors of the palette.
 * In the inserted intro, it is now possible to change the speed of the appearance of the image and make it auto-rewind without pressing the Start button.
 
 ver 1.01 30.03.2014 - second release.

 * size of the output file became smaller
 * added obscuring the screen
 * removed rewinding of the palette

 ver 1.0  05.03.2014 - first release.

 Express enormous thanks MaPaT for help in programming!(C) 17.03.2027 Guyver X.B.M. http://chief-net.ru
